//
//  MineOrderTableViewCell.h
//  B2C
//
//  Created by 李小龙 on 2017/7/31.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OrderModel.h"
#import "OrderHalfButton.h"

@interface MineOrderTableViewCell : UITableViewCell

typedef void(^OrderButtonClick)(OrderButtonType type,NSInteger tag);

@property (weak, nonatomic) IBOutlet UILabel *firstNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *firstStatusLabel;
//@property (weak, nonatomic) IBOutlet UIImageView *firstIconImageView;
//@property (weak, nonatomic) IBOutlet UIImageView *firstTypeImageView;

@property (weak, nonatomic) IBOutlet UIImageView *secondImageView;
@property (weak, nonatomic) IBOutlet UILabel *secondNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondSpecsLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *secondStatusLabel;
@property (weak, nonatomic) IBOutlet UIView *secondLineView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *secondCountCYLayout;

@property (weak, nonatomic) IBOutlet UILabel *thirdTotalLabel;
@property (weak, nonatomic) IBOutlet UILabel *thirdPriceLabel;
@property (weak, nonatomic) IBOutlet UIView *thirdLineView;

@property (weak, nonatomic) IBOutlet UIView *fourthBackView;

@property (weak, nonatomic) IBOutlet UILabel *fifthPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *fifthStatusLabel;
@property (weak, nonatomic) IBOutlet UIView *fifthLineView;

@property (nonatomic, copy) OrderButtonClick orderBlock;

#pragma mark - 订单列表
+ (instancetype)mineOrderCellWith:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath count:(NSInteger)count;
- (void)updateCellWith:(OrderModel *)model indexPath:(NSIndexPath *)indexPath;

#pragma mark - 退款订单列表
+ (instancetype)refundListCellWith:(UITableView *)tableView indexPath:(NSIndexPath *) indexPath count:(NSInteger)count;
- (void)updateRefundListCellWith:(OrderModel *)model indexPath:(NSIndexPath *)indexPath;

@end
